@extends('layouts.app')
@section('title', '登录')

@section('styles')
  <link rel="stylesheet" href="/static/layuiadmin/style/login.css" media="all">
@endsection

@section('content')
  <div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
    <div class="layadmin-user-login-main">
      <div class="layadmin-user-login-box layadmin-user-login-header">
        <h2>laraBBS</h2>
        <p>基于Laravel+Layui的BBS系统</p>
      </div>
      <form action="{{route('login')}}" method='POST' class="layadmin-user-login-box layadmin-user-login-body layui-form">
        {{ csrf_field() }}
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-username" for="LAY-user-login-username"></label>
          <input type="text" name="email" id="LAY-user-login-username" lay-verify="email" placeholder="邮箱" class="layui-input" value="{{ old('email') }}">
        </div>
        <div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
          <input type="password" name="password" id="LAY-user-login-password" lay-verify="required" placeholder="密码" class="layui-input" value="{{ old('password') }}">
        </div>
        <div class="layui-form-item">
          <input type="checkbox" name="remember" lay-skin="primary" title="记住我" checked>
        </div>
        <div class="layui-form-item">
          <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit">登 入</button>
        </div>
        <div class="layui-trans layui-form-item layadmin-user-login-other">
          <a href="{{route('register')}}" class="layadmin-user-jump-change layadmin-link">注册帐号</a>
        </div>
      </form>
    </div>




  </div>


@endsection

@section('js')
<script>
  layui.use(['form'], function(){
    var form = layui.form;
  });

</script>

@endsection
